Skip to main content
Feedback

Subscriptions

Supported operations

OperationQUERYMUTATION
EventStreamsSubscription✅ Supported✅ Supported

Subscription mutation syntax

Event Streams Subscription Create

eventStreamsSubscriptionCreate ( input EventStreamsSubscriptionCreateInput! ) EventStreamsSubscription!

Event Streams Subscription Update

eventStreamsSubscriptionCreate ( input EventStreamsSubscriptionCreateInput! ) EventStreamsSubscription!

Event Streams Subscription Delete

eventStreamsSubscriptionDelete ( subscription EventStreamsSubscriptionKey! ) ID!

Subscription query fields

EventStreamsQuerySubscription

FieldTypeDescription
idIDThe name of the subscription. It is unique within the environment.
topicEventStreamsQueryTopicThe topic details the subscription is on.

EventStreamsSubscription

FieldTypeDescription
nameIDThe name of the subscription. It is unique within the topic.
topicEventStreamsQueryTopicThe topic to which the subscription belongs.
typeBooleanThe subscription type.
durableIntegerWhether the subscription is durable or not.
backlogCountBigIntegerThe current number of messages not acknowledged on this subscription.
messageRateOutFloatThe current rate of messages consumed per second from this subscription.
createdTimeDateTimeThe timestamp when this topic was created either through this API or when the first producer or subscriber connected to it.
consumersEventStreamsConsumerThe list of connected consumers for this subscription.
descriptionStringThe user specified description for this subscription.
deadLetterBacklogCountBigIntegerThe current number of dead letter messages on this subscription.
retryBacklogCountBigIntegerThe current number messages that are being retried on this subscription.

EventStreamsSubscriptionKey

FieldTypeDescription
topicEventStreamsTopicKeyThe topic the subscription is on.
nameIDThe subscription name.

EventStreamsSubscriptionCreateInput

FieldTypeDescription
environmentIdIDThe ID of the environment to which the topic of the subscription belongs.
topicNameIDThe topic name of the subscription.
nameIDThe name of the subscription.
descriptionStringThe user-defined description for this topic.

EventStreamsSubscriptionType

FieldDescription
NONENo subscription exists.
FAILOVERMultiple consumers can attach to the same subscription, but only one receives messages from that subscription for each topic or topic partition.
EXCLUSIVEOnly a single consumer is allowed to attach to the subscription.
If multiple consumers subscribe to a topic using the same subscription, an error occurs.
SHAREDMultiple consumers can attach to the same subscription.
Messages are delivered in a round robin distribution across consumers, and any given message is delivered to only one consumer.

GraphQL implementation

Mutations

eventStreamsSubscriptionCreate Mutation

  eventStreamsSubscriptionCreate(input: {
environmentId: "------"
topicName: "------"
name: "------"
}) {
name
topic {
name
environment
producerCount
subscriptionCount
subscriptions
backlogCount
messageRateIn
messageRateOut
createdTime
producers
description
createdBy
partitions
}
type
durable
backlogCount
messageRateOut
createdTime
consumers {
name
messageRateOut
}
description
deadLetterBacklogCount
retryBacklogCount
}
}

eventStreamsSubscriptionCreate response

  "data": {
"eventStreamsSubscriptionCreate": {
"name": "-----",
"topic": {
"name": "----",
"createdTime": "2023-08-17T21:31:00.000Z",
"description": "------",
"createdBy": "admin@boomi.com"
},
"type": "NONE",
"durable": true,
"createdTime": "2023-08-17T21:42:10.000Z",
"description": "-------"
}
}
}

eventStreamsSubscriptionelete mutation

  eventStreamsSubscriptionDelete(
subscription: {
topic: {
environmentId: "XXXX"
name: "_____"
}
name: "______"
}
)
}

eventStreamsSubscriptionDelete response

  "data": {
"eventStreamsSubscriptionDelete": "------"
}
}

eventStreamsSubscriptionClearBacklog Mutation

  eventStreamsSubscriptionClearBacklog(subscription: {
topic: {
environmentId: "XXXX"
name: "_____"
}
name: "______"
}
)
}

EventStreamsSubscriptionClearBacklog Mutation for clearing DLQ

eventStreamsSubscriptionClearBacklog(subscription: {
topic: {
environmentId: "XXXX"
name: "topicname-subname-DLQ-$"
}
name: "subscriptionName"
}
)
}
note

DLQName can be formed by the following regex: topicname-subname-DLQ-$ Where topicname is the topic name and subname is the respective subscription name.

On this Page